package com.hypo.ribbonclient;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: haibo.tang2
 * @Date: 2021/8/13
 * @Description:
 **/
@RestController
@RequestMapping("/test")
public class TestClientController {


    @Value("${server.port}")
    private Integer serverPort;
    @RequestMapping(value = "/getPort",method = RequestMethod.GET)
    public String sayHello(){
        String s = "当前端口" + serverPort;
        return s;
    }
}
